package com.kuun.mongo.repository;


import org.springframework.data.jpa.repository.Query;
import org.springframework.data.mongodb.repository.MongoRepository;
import com.kuun.domain.Restaurant;
/**
 * 
 * @author kuun
 *
 */
public interface RestaurantRepository extends MongoRepository<Restaurant, Integer> {
	
	public Restaurant findByRestaurantName(String restaurantName) ;
	
	@Query(value="find({'restaurantName': ?0})")
	public Restaurant getRestaurantByRestaurantName(String restaurantName) ;
	
}
